package com.xzx.paymentdemo.controller;

import com.xzx.paymentdemo.config.WxPayConfig;
import com.xzx.paymentdemo.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试
 *
 * @author xzx
 * @since 2022/5/31
 */
@Api(tags = "测试控制器")
@RestController
public class testController {
    @Autowired
    private WxPayConfig wxPayConfig;

    @GetMapping
    public R getWxPayConfig() {
        String mchId = wxPayConfig.getMchId();
        return R.ok().data("mchId", mchId);
    }
}
